#pragma once
#include "PDTStatement.h"
#include "PDTExp.h"
class PDTIfElse: public PDTStatement{
public:

   void setCondition(PDTExpBool & condition);
   void setIfResult(PDTStatement &ifResult);
   void setElseResult(PDTStatement &elseResult);

   PDTExpBool * getCondition();
   PDTStatement * getIfResult();
   PDTStatement * getElseResult();

   PDTIfElse(PDTCodeGraph & CG);
   PDTIfElse(PDTCodeGraph & CG,PDTExpBool & condition,PDTStatement & ifResult,PDTStatement & elseResult);
   NodeTypeEnum getType(){return PDTIfElse_Em;}
   bool isPDTIfElse(){return true;}

};

